package com.lm.service;

import com.lm.pojo.User;

import java.util.List;

public interface UserService {
    //查询所有用户
    List<User> getUserList();
    //插入
    int insert(User user);

    //根据id查询用户
    User getUserById(int id);

    //修改用户
    int updateUser(User user);

    //删除用户
    int deleteUser(int id);

    //根据id查询用户 结果集映射Map
    User getUserByIdForMap(int id);

    void testTransaction(User user);
}
